package neusoft.example.com.yuejian06.Service;

import java.util.List;

import neusoft.example.com.yuejian06.Bean.Activity;
import neusoft.example.com.yuejian06.Bean.Attention;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ActivityService {
    //列表
    @GET("getActivityList")
    Call <List<Activity>> getActivityList();

    //详情
    @GET("getActivityById")
    Call<Activity> getActivity(@Query("activity_id") String activity_id);

    //是否关注活动
    @GET("isAttentionActivity")
    Call<Attention> isAttentionActivity(@Query("activity_id")String activity_id,
                                        @Query("user_id")String user_id);

    //关注活动
    @GET("attentionActivity")
    Call<Attention> attentionActivity(@Query("user_id") String user_id,
                              @Query("activity_id") String activity_id);
    //取消关注活动
    @GET("cancelAttentionActivity")
    Call<Attention> cancelAttentionActivity(@Query("user_id") String user_id,
                              @Query("activity_id") String activity_id);
}
